/**
 * 个人注册会员接口
 *
 * @date 2021-08-03
 * @author 逗号米
 */

import http from '@/api'

/**
 * 前缀
 *
 * @type {string}
 */
const prefix = `${http}/cms/personal/user`


/**
 * 首页
 *
 * @type {string}
 */
export const index: string = `${prefix}`

/**
 * 查询
 *
 * @return {string}
 */
export const query: string = `${prefix}/query`

/**
 * 存储
 *
 * @type {string}
 */
export const store: string = `${prefix}`

/**
 * 显示
 *
 * @param {number} id
 * @return {string}
 */
export const show = (id: number): string => `${prefix}/${id}`

/**
 * 更新
 *
 * @param id
 * @return {string}
 */
export const update = (id: number): string => `${prefix}/${id}`

/**
 * 删除
 *
 * @param {int} id
 * @return {string}
 */
export const destroy = (id: number): string => `${prefix}/${id}`

/**
 * 修改用户名
 *
 * @param {int} id
 * @return {string}
 */
export const modifyUsername = (id: number): string => `${prefix}/modify-username/${id}`

/**
 * 修改密码
 *
 * @param {int} id
 * @return {string}
 */
export const modifyPassword = (id: number): string => `${prefix}/modify-password/${id}`

/**
 * 绑定手机号
 *
 * @param {int} id
 * @return {string}
 */
export const bindMobile = (id: number): string => `${prefix}/bind-mobile/${id}`

/**
 * 绑定邮箱
 *
 * @param {int} id
 * @return {string}
 */
export const bindEmail = (id: number): string => `${prefix}/bind-email/${id}`

/**
 * 解除绑定
 *
 * @param {int} id
 * @return {string}
 */
export const unBind = (id: number): string => `${prefix}/un-bind/${id}`

/**
 * 退出客户端
 *
 * @param {int} id
 * @return {string}
 */
export const logoutClient = (id: number): string => `${prefix}/logout-client/${id}`

/**
 * 锁定
 *
 * @param {int} id
 * @return {string}
 */
export const lock = (id: number): string => `${prefix}/lock/${id}`
